package uniquindio.facing.ingesis.moviles.undroiq.activity;

import uniquindio.facing.ingesis.moviles.undroiq.activity.BinderService.LocalBinder;
import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.IBinder;

public class ServiceConnectionForBinder implements ServiceConnection {
	
	private LoginActiviy activity;
	
	public ServiceConnectionForBinder(LoginActiviy activity) {
		this.activity = activity;
	}


	public void onServiceConnected(ComponentName className, IBinder binder) {
		
		// Se obtiene el servicio del Binder y se asigna al atributo de la
		// actividad principal para all� ser usado.
		LocalBinder localBinder = (LocalBinder) binder;
		//activity.setBinderService(localBinder.getService());
	}

	public void onServiceDisconnected(ComponentName className) {}

}
